def judgePirme1(theNumber):
    if theNumber==1:
        return True
    elif theNumber==2:
        return True
    else:
        for i in range(2,theNumber):
            if theNumber%i == 0:
                return False
        return True

if __name__ == "__main__":
    theResult = []
    for i in range(1,20001):
        if judgePirme1(i):
            if len(theResult)<5:
                theResult.append(i)
            else:
                print(theResult)
                theResult.clear()